<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	String contextPath = request.getContextPath();
%>
<html>
<head>
    <meta charset="UTF-8">
    <title>部门指标配置</title>   
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/resources/easyUI/themes/gray/easyuia.css">
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/resources/easyUI/icon.css">
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/resources/query-form.css">
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/resources/jquery.loadmask.css" />
    <script type="text/javascript" src="<%=contextPath%>/resources/js/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="<%=contextPath%>/resources/js/jquery.easyui.min.js"></script>
    <script type='text/javascript' src='<%=contextPath%>/resources/js/forms/departEdit.js'></script>
</head>
<body>
    <div id="content" style="height: 100%">
        <input type="hidden" id="departidF" name="departidF">
        <input type="hidden" name="syearTemp" id="syearTemp"/>
        <input type="hidden" name="formid" id="formid"/>
        <div id="tablepanel" class="easyui-panel" style="width:100%;height:auto;padding:10px;" title="报表列表">
            <table id="tt" style="width:auto;height:auto;"></table>
        </div>
    </div>

    <div id="dialogAdd">
        <form id="fmAdd" method="post" action="<%=contextPath%>/report/save.do">
            <input type="hidden" name="id" id="id"/>
            <input type="hidden" name="formsDepart" id="formsDepart" />
            <input type="hidden" name="departid" id="departid" />
            <input type="hidden" name="year" id="year" />
            <input type="hidden" name="formsid" id="formidA" />
            <input type="hidden" name="indicatorid" id="indicatorid" />

            <table style="width: 100%; height:auto; margin-top: 30px; ">
                <tr style=" margin-top: 30px; position:relative;">
                    <td style="width:30%; float: top; position:absolute;"><table id="ttIndicatorType" ></table></td>
                    <td style="width:70%; float: top; "><table id="ttindicator" ></table>
                        <div align="center">
                            <a class="easyui-linkbutton" id="a_AddOK" onclick="">确定</a>
                            <a class="easyui-linkbutton" id="a_AddCancle">取消</a>
                        </div>
                    </td>
                </tr>
            </table>
        </form>
    </div>

    <div id="dialogMove">
        <form id="fmMove" name="fmMove" method="post" action="<%=contextPath%>/department/indicator/move.do">
            <input type="hidden" name="fromDepartId" id="fromDepartId" />
            <input type="hidden" name="indicatorIds" id="indicatorIds" />
            <input type="hidden" name="fromYear" id="fromYear" />

            <table style="margin-top: 30px; position:relative; ">
                <tr style="margin-top: 60px; position:absolute;">
                    <td style="width:30%; text-align: right"><label>目标部门:</label></td>
                    <td style="width:80%;text-align:left">
                        <select class="easyui-combobox" name="toDepartId" id="toDepartId" style="width: 220px;">
                            <c:forEach var="department" items="${departmentes}">
                                <option value="${department.id}">${department.sname}</option>
                            </c:forEach>
                        </select>
                    </td>
                </tr>
                <tr style="margin-top: 90px; ">
                    <td style="width:20%;text-align:right"><label>目标年份:</label></td>
                    <td style="width:80%;text-align:left">
                        <select class="easyui-combobox" id="toYear" name="toYear" style="width: 220px;">
                            <c:forEach var="yearsOption" items="${years}">
                                <option value="${yearsOption}">${yearsOption}</option>
                            </c:forEach>
                        </select>
                    </td>
                </tr>
            </table>
            <div  style="margin-top: 120px;">
                <a class="easyui-linkbutton" id="a_MoveOK" onclick="">确定</a>
                <a class="easyui-linkbutton" id="a_MoveCancle">取消</a>
            </div>
        </form>
    </div>

    </body>
</html>